package org.xx.Singleton;

/**
 * 饿汉式
 */
public class HungerSingleton {
    // 饿汉式初始化就创建对象
    public static final HungerSingleton hungerSingleton = new HungerSingleton();

    private HungerSingleton() {
    }

    public static HungerSingleton getInstance() {
        return hungerSingleton;
    }
}
